package com.example.qcweb;

import com.example.modal.User;

import java.util.ArrayList;
import java.util.List;

public class MyGlobal {
    // public static List<CardInfo> card=new ArrayList<CardInfo>();
    public static String KeycardCode;
    public static List<String> savedFileList = new ArrayList<String>();
    public static String userRealname;
    public static User user;

    public static User LoginUser() {
        return user;

    }

    public static void setcard(String cardId) {
        KeycardCode = cardId;
    }

    public static List<String> getSavedFile() {
        // TODO Auto-generated method stub

        return savedFileList;
    }

    public static void addSavedFile(String Filename) {
        savedFileList.add(Filename);
    }

    public static void removeAllSavedFile() {
        // TODO Auto-generated method stub
        if (savedFileList != null) {
            savedFileList.removeAll(savedFileList);
        }

    }

}